#ifndef __HWCLT__H
#define __HWCTL__H

typedef struct hwctl{

    char dev_name[128]; //设备名称
    int key; //key值，用于匹配控制指令的值
    int gpio_pin; //控制的gpio引脚
    int gpio_mode; //输入输出模式
    int gpio_status; //高低电平状态
    int check_face_status; //是否进行人脸检测状态
    int voice_set_status; //是否语音语音播报
    struct hwctl *next;
}hw_node,*hw_pt;

hw_pt dev_add(hw_pt devHead, hw_pt target);
hw_pt dev_find(hw_pt devHead, int key);
int set_dev(hw_pt devHead);
hw_pt lrled_add(hw_pt devHead);
hw_pt beled_add(hw_pt devHead);
hw_pt fan_add(hw_pt devHead);
hw_pt alarm_add(hw_pt devHead);
hw_pt lock_add(hw_pt devHead);

#endif
